var redirect = function() {


	console.log('redirect begin...');

	let userAgent = navigator.userAgent.toLowerCase();

	// 正则表达式 
	let device_pattern = /ipad|iphone|midp|rv:1.2.3.4|ucweb|android|windows ce|windows mobile/;


	if (device_pattern.test(userAgent)) {
		// 跳转 移动端页面
		window.location.href = 'mobile.html';
	} else {
		// 跳转pc 端页面
		window.location.href = 'pc.html';
	}
}


redirect();

// window.addEventListener('resize', redirect);
